//
//  FCAppConfig.h
//  FCBaseKit
//
//  Created by sobey on 2020/3/19.
//  Copyright © 2020 Summer. All rights reserved.
 
//  获取APP配置
 
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "FCAppConfigModel.h"
 
#define kFCAppConfig_json  FCAppConfig.shareInstance.config.data.config_json
#define kFCAppConfigInstance  FCAppConfig.shareInstance

#define kFCPlaceholderImage  [FCAppConfig placeholderImage]
///  播放的图片
#define kFCPlyerImage  [FCAppConfig plyerImage]
///  播放的暂停
#define kFCPlyerPauseImage  [FCAppConfig plyerPauseImage]
@interface FCAppConfig : NSObject

//单例，初始化时默认调用获取配置数据
+ (instancetype)shareInstance;

@property (nonatomic , strong) FCAppConfigModel *config;//配置数据
@property (nonatomic , copy) NSArray<FCAppConfigtmRules *> *tmRules;//web跳转配置数据
@property (nonatomic , assign) BOOL isAddWebUserAgent;//是否已经添加userAgent
@property (nonatomic , copy) NSString *webFont;//解析webView的font
@property (nonatomic , strong) NSDictionary *configJsonDict;
///定位成功后的 区域编码
@property (nonatomic, copy) NSString *adcode;
//经度
@property (nonatomic, copy) NSString *longitude;
//纬度
@property (nonatomic, copy) NSString *latitude;

/// 获取行间距 本地配置配件 LabelLineSpacing"][@"lineSpacing
+ (CGFloat)fclineSpacing;

/*
   获取配置数据
 */
- (void)getAppConfigWithBlock:(void (^)(FCAppConfigModel* config,BOOL success))requestBlock;
/// 是否 天马的容器 跳转
+ (BOOL)jumpTmWebUrl:(NSString *)url vc:(UIViewController*)vc;
/// 是否 天马的容器
+ (BOOL)jumpTmWebUrl:(NSString *)url vc:(UIViewController*)vc param:(NSDictionary *)param;
/// 是否草原云
+ (BOOL)isCyy;
/// 全局的默认图片
+ (UIImage *)placeholderImage;
/// 全局的图片 播放
+ (UIImage *)plyerImage;
/// 全局的图片  播放暂停
+ (UIImage *)plyerPauseImage;

@end

